home *** CD-ROM | disk | FTP | other *** search
/ Programmer Plus 2007 / Programmer-Plus-2007.iso / Programming / Report Writers / Crystal Repot 9.0 Full CD version / Setup.exe / SRC / HOARDDLL.ZIP / 3rdParty / hoard / libhoard-2.0.2 / NOTES.BeOS < prev    next >
Encoding:
Text File  |  1999-11-22  |  1.5 KB  |  32 lines

  1. ============================================================================
  2.  
  3. These notes are from Trey Boudreau (trey@treysoft.com). Note that these
  4. caveats do NOT apply to using Hoard with other OS's, like Linux or Solaris.
  5. On those systems, linking with Hoard replaces calls to malloc/free and
  6. new/delete in both the system libraries and your application, so (1) and
  7. (3) do not apply.
  8.  
  9. -- Emery
  10.  
  11. ============================================================================
  12.  
  13. Given the way shared libraries are built under the BeOS, you will NOT be
  14. able to replace the BeOS allocator with hoard for the system libraries.  In
  15. other words, you can't make an already compiled application use hoard.  You
  16. can only use it for building apps for which you have the source.  If you
  17. decide to build an app using hoard, please note these ramifications and
  18. limitations from the above:
  19.  
  20. 1) You can't free()/realloc() memory from one allocator by another.  For
  21. example, you can't call hoard's free() on the pointer returned from
  22. strdup().
  23.  
  24. 2) To gain access to the system allocator, you'll have to write wrappers for
  25. them, or use different names for the hoard allocator entrypoints.
  26.  
  27. 3) To make your C++ code's new and delete operators use the hoard allocator
  28. (in your code only, not the system libs), you must include -lgcc in the
  29. linker options.  If you do not, you will end up getting the new and delete
  30. support from libroot.so, which will use the system allocator.
  31.  
  32.